package cn.topkinson.es.etl.entity.es;

import org.elasticsearch.search.SearchHits;

import java.util.List;

public class SearchResult<T> {

    private Long total;

    private List<T> list;

    private SearchHits searchHits;

    public SearchResult(Long total, List<T> list, SearchHits searchHits) {
        this.total = total;
        this.list = list;
        this.searchHits = searchHits;
    }

    public SearchResult() {
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public SearchHits getSearchHits() {
        return searchHits;
    }

    public void setSearchHits(SearchHits searchHits) {
        this.searchHits = searchHits;
    }
}
